home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0134-MacApp & C++-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-20  |  1.5 KB  |  38 lines  |  [TEXT/GEOL]

  1. Item    0796281                         19-Oct-89        11:50
  2.  
  3. From:   SHEBANOW1                       Shebanow, Andrew
  4.  
  5. To:     D4280                           IDS, Robert Pappas, AST
  6.         MACAPP.TECH$                    MACAPP Tech
  7.  
  8. Sub:    MacApp & C++
  9.  
  10. Well, I don't have the source code for the Bird example, but I can comment on
  11. some of the warnings.
  12.  
  13. File "HD:MacApp:Interfaces:CIncludes:UMacAppUtilities.h"; line 388 # warning:
  14. __GetA0  is reserved (starts with __[A-Z]); compile could fail!
  15.  
  16. This warning is new for b1 - earlier versions of C++ didn't give it. What
  17. happends is that the compiler prepends __ to some of its generated variable and
  18. function names. When you define a symbol like this, CFront is warning you that
  19. a symbol name that it generates MAY conflict with your symbol. The __GetA0
  20. functions in MacApp will probably be renamed for 2.0 to get around this
  21. problem.
  22.  
  23. File "UBird.h"; line 63 # warning:  TBirdView::Draw() hides virtual
  24. TView::Draw()
  25.  
  26. I can't say for sure without the sample source, but this one is probably caused
  27. by not having an EXACT match between TView::Draw and TBirdView::Draw interfaces
  28. (parameter types, return value). If they don't match exactly, CFront thinks
  29. that you are overloading the Draw method (as opposed to overriding it). The
  30. warning comes because overloaded methods hide methods with the same name in the
  31. superclass. If you make the parameters match, everything should work, without
  32. warnings.
  33.  
  34. Andy Shebanow
  35. MacDTS
  36. Apple Computer - Where Everyone Is A Mover & Shaker
  37.  
  38.